#define  _CRT_SECURE_NO_WARNINGS 1	
#include <stdio.h>

int main() {
    int n;
    float score;
    float max = 0.0;
    float min = 100.0;
    float sum = 0.0;
    scanf("%d", &n);
    int i = n;
    while (n)
    {
        scanf("%f", &score);
        if (score > max)
            max = score;
        if (score < min)
            min = score;
        sum += score;
        n--;
    }
    printf("%.2f %.2f %.2f", max, min, sum / i);
    return 0;
}